//
//  CACsemDevErrLog+Desc.m
//  CareRing
//
//  Created  on 2025/6/3.
//
    

#import "CAnAlgDevErrLog+Desc.h"
#import <DateTools/DateTools.h>
#import "ConfigModel.h"

@implementation CAnAlgDevErrLog (Desc)
-(NSString *)wholeDesc
{
    
    NSMutableString *infoString = [NSMutableString new];
    
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:self.timeStamp];
//    ;
    [infoString appendFormat:@"Date:%@, ", [date formattedDateWithFormat:_L2(L_DATE_FMT)]];
    
    [infoString appendFormat:@"UUid:%@, ", self.dataUuid];
    
    [infoString appendFormat:@"Error:0x%X, ", self.errorType];
    
    [infoString appendFormat:@"Algorithm Switch:%d, ", self.algorithmSwitch];
    
    [infoString appendFormat:@"MeasurmentMode:%d, ", self.measurmentMode];

    [infoString appendFormat:@"SleepOrWake:%@, ", self.sleepOrWake? @"Wake":@"aSleep"];


    return infoString;
}

@end
